/*
 * msp430_ext.c
 *
 *  Created on: 13.01.2013
 *      Author: Michael
 */

/*
 * ======== Standard MSP430 includes ========
 */
#include <msp430.h>

/*
 * ======== Project related includes ========
 */
#include "extensions/msp430/msp430_ext.h"

void msp430ext_startLed10(void) {
	// Set P1DIR to output
	P1DIR |= BIT0;

	// turn led 1.0 on
	while (1)
		P1OUT = BIT0;
}

void msp430ext_stopLed10(void) {
	// Set P1DIR to output
	P1DIR |= BIT0;

	// turn led 1.0 off
	while (1)
		P1OUT = !BIT0;
}

void msp430ext_startLed16(void) {
	// Set P1DIR to output
	P1DIR |= BIT6;

	// turn led 1.6 on
	while (1)
		P1OUT = BIT6;
}

void msp430ext_stopLed16(void) {
	// Set P1DIR to output
	P1DIR |= BIT6;

	// turn led 1.6 off
	while (1)
		P1OUT = !BIT6;
}

